#define _CRT_SECURE_NO_WARNINGS 1

int xorOperation(int n, int start) {
    int val = 0;
    for (int i = 0; i < n; i++)
    {
        val ^= start + 2 * i;
    }
    return val;
}